package com.lee.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by dgyl1 on 2017/3/11.
 */
@Controller
public class Index {

    @RequestMapping(value = "/index", method = RequestMethod.GET )
    public String printHello(ModelMap model) {
        model.addAttribute("END", "this is end");
        model.addAttribute("Title", "this is title");
        return "index";
    }
}
